package com.erlinyou.im.service.motion.impl;

import java.util.List;
import java.util.Optional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;

import com.erlinyou.base.service.BaseServiceImpl;
import com.erlinyou.im.dao.repository.motion.UserImageRepository;
import com.erlinyou.im.model.motion.UserImage;
import com.erlinyou.im.service.motion.UserImageService;
@Service
public class UserImageServiceImpl extends BaseServiceImpl<UserImage, String> implements UserImageService {

	@Autowired
	private UserImageRepository userImageRepository;
	
	
	@Override
	public <S extends UserImage> S save(S entity) {
		return userImageRepository.save(entity);
	}

	@Override
	public Optional<UserImage> findById(String id) {
		return userImageRepository.findById(id);
	}


	@Override
	public void deleteById(String id) {
		userImageRepository.deleteById(id);
	}

	@Override
	public void delete(UserImage entity) {
		// TODO Auto-generated method stub

	}

}
